import { request } from '@/app/http'
const PATH = '/student'

export function myResume() {
  return request({
    url: PATH + '/myResume',
    method: 'get',
    showLoading: true,
    showErr: true
  })
}

export function updateResumePersonInfo(data) {
  return request({
    url: PATH + '/updateResumePersonInfo',
    method: 'put',
    data,
    showMsg: true
  })
}

export function updateSelfEvaluation(data) {
  return request({
    url: PATH + '/updateSelfEvaluation',
    method: 'put',
    data,
    showMsg: true
  })
}

export function createWorkExperience(data) {
  return request({
    url: PATH + '/createWorkExperience',
    method: 'post',
    data,
    showMsg: true
  })
}

export function updateWorkExperience(data) {
  return request({
    url: PATH + '/updateWorkExperience',
    method: 'put',
    data,
    showMsg: true
  })
}

export function deleteWorkExperience(data) {
  return request({
    url: PATH + '/deleteWorkExperience',
    method: 'delete',
    data,
    showMsg: true,
    showLoading: true
  })
}

export function createEducationExperience(data) {
  return request({
    url: PATH + '/createEducationExperience',
    method: 'post',
    data,
    showMsg: true
  })
}

export function updateEducationExperience(data) {
  return request({
    url: PATH + '/updateEducationExperience',
    method: 'put',
    data,
    showMsg: true
  })
}

export function deleteEducationExperience(data) {
  return request({
    url: PATH + '/deleteEducationExperience',
    method: 'delete',
    data,
    showMsg: true,
    showLoading: true
  })
}

export function createSkill(data) {
  return request({
    url: PATH + '/createSkill',
    method: 'post',
    data,
    showMsg: true
  })
}

export function updateSkill(data) {
  return request({
    url: PATH + '/updateSkill',
    method: 'put',
    data,
    showMsg: true
  })
}

export function deleteSkill(data) {
  return request({
    url: PATH + '/deleteSkill',
    method: 'delete',
    data,
    showMsg: true,
    showLoading: true
  })
}

export function updateRecentPhoto(data) {
  return request({
    url: PATH + '/updateRecentPhoto',
    method: 'put',
    data,
    showMsg: true,
    showLoading: true
  })
}
